package pers.chy.chyappointmentplatform;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableTransactionManagement //开启MyBatis事务控制
//@MapperScan("pers.chy.chyappointmentplatform.Mapper") // 扫描Mapper包，就不需要在每个mapper类上添加@mapper注解了
@ServletComponentScan(basePackages = "pers.chy.chyappointmentplatform.Filter") // 为了使过滤器生效，需要在启动类添加注解
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class ChyAppointmentPlatformApplication {

    public static void main(String[] args) {
        SpringApplication.run(pers.chy.chyappointmentplatform.ChyAppointmentPlatformApplication.class, args);
    }

}
